<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>LiteGUI</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="icon" href="../assets/favicon.ico">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
                <h1><img src="../assets/css/logo.png" title="" width="117" height="52"></h1>
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
                    <h2 class="off-left">APIs</h2>
                    <div id="api-tabview" class="tabview">
                        <ul class="tabs">
                            <li><a href="#api-classes">Classes</a></li>
                            <li><a href="#api-modules">Modules</a></li>
                        </ul>
                
                        <div id="api-tabview-filter">
                            <input type="search" id="api-filter" placeholder="Type to filter APIs">
                        </div>
                
                        <div id="api-tabview-panel">
                            <ul id="api-classes" class="apis classes">
                                <li><a href="../classes/Area.html">Area</a></li>
                                <li><a href="../classes/ContextMenu.html">ContextMenu</a></li>
                                <li><a href="../classes/Dialog.html">Dialog</a></li>
                                <li><a href="../classes/Inspector.html">Inspector</a></li>
                                <li><a href="../classes/LineEditor.html">LineEditor</a></li>
                                <li><a href="../classes/List.html">List</a></li>
                                <li><a href="../classes/LiteGUI.html">LiteGUI</a></li>
                                <li><a href="../classes/SearchBox.html">SearchBox</a></li>
                                <li><a href="../classes/Slider.html">Slider</a></li>
                                <li><a href="../classes/Split.html">Split</a></li>
                                <li><a href="../classes/Tabs.html">Tabs</a></li>
                                <li><a href="../classes/Tree.html">Tree</a></li>
                            </ul>
                
                
                            <ul id="api-modules" class="apis modules">
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
                    Show:
                    <label for="api-show-inherited">
                        <input type="checkbox" id="api-show-inherited" checked>
                        Inherited
                    </label>
            
                    <label for="api-show-protected">
                        <input type="checkbox" id="api-show-protected">
                        Protected
                    </label>
            
                    <label for="api-show-private">
                        <input type="checkbox" id="api-show-private">
                        Private
                    </label>
                    <label for="api-show-deprecated">
                        <input type="checkbox" id="api-show-deprecated">
                        Deprecated
                    </label>
            
                </div>
            
            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
<h1>LiteGUI Class</h1>
<div class="box meta">


        <div class="foundat">
            Defined in: <a href="../files/.._src_core.js.html#l2"><code>..&#x2F;src&#x2F;core.js:2</code></a>
        </div>


</div>


<div class="box intro">
    <p>Core namespace of LiteGUI library, it holds some useful functions</p>

</div>

    <div class="constructor">
        <h2>Constructor</h2>
<div id="method_LiteGUI" class="method item">
    <h3 class="name"><code>LiteGUI</code></h3>

        <span class="paren">()</span>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l2"><code>..&#x2F;src&#x2F;core.js:2</code></a>
        </p>



    </div>

    <div class="description">
        
    </div>




</div>
    </div>

<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                            <li class="index-item method">
                                <a href="#method_add">add</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_addCSS">addCSS</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_alert">alert</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_choice">choice</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_cloneObject">cloneObject</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_confirm">confirm</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_createButton">createButton</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_createDropArea">createDropArea</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_createElement">createElement</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_draggable">draggable</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getById">getById</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getLocalClipboard">getLocalClipboard</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getUrlVars">getUrlVars</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_init">init</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_popup">popup</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_prompt">prompt</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_remove">remove</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_request">request</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_requestBinary">requestBinary</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_requestJSON">requestJSON</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_requestText">requestText</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_requireCSS">requireCSS</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_requireScript">requireScript</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_setCursor">setCursor</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_setCursor">setCursor</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_sizeToCSS">sizeToCSS</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_toClipboard">toClipboard</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_trigger">trigger</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_trigger">trigger</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_unbind">unbind</a>

                            </li>
                    </ul>
                </div>



        </div>

            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

<div id="method_add" class="method item">
    <h3 class="name"><code>add</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>litegui_element</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l174"><code>..&#x2F;src&#x2F;core.js:174</code></a>
        </p>



    </div>

    <div class="description">
        <p>Appends litegui widget to the global interface</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">litegui_element</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_addCSS" class="method item">
    <h3 class="name"><code>addCSS</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>code</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l355"><code>..&#x2F;src&#x2F;core.js:355</code></a>
        </p>



    </div>

    <div class="description">
        <p>Insert some CSS code to the website</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">code</code>
                        <span class="type">String | Object</span>


                    <div class="param-description">
                        <p>it could be a string with CSS rules, or an object with the style syntax.</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_alert" class="method item">
    <h3 class="name"><code>alert</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>options</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l782"><code>..&#x2F;src&#x2F;core.js:782</code></a>
        </p>



    </div>

    <div class="description">
        <p>Shows an alert dialog with a message</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">options</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>( title, width, height, content, noclose )</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_choice" class="method item">
    <h3 class="name"><code>choice</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
                <li class="arg">
                        <code>options</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l899"><code>..&#x2F;src&#x2F;core.js:899</code></a>
        </p>



    </div>

    <div class="description">
        <p>Shows a choice dialog with a message</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">options</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>( title, width, height, content, noclose )</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_cloneObject" class="method item">
    <h3 class="name"><code>cloneObject</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>object</code>
                </li>
                <li class="arg">
                        <code>target</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l1086"><code>..&#x2F;src&#x2F;core.js:1086</code></a>
        </p>



    </div>

    <div class="description">
        <p>Clones object content</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">object</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">target</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_confirm" class="method item">
    <h3 class="name"><code>confirm</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
                <li class="arg">
                        <code>options</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l803"><code>..&#x2F;src&#x2F;core.js:803</code></a>
        </p>



    </div>

    <div class="description">
        <p>Shows a confirm dialog with a message</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">options</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>( title, width, height, content, noclose )</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_createButton" class="method item">
    <h3 class="name"><code>createButton</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>id</code>
                </li>
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
                <li class="arg">
                        <code>style</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l665"><code>..&#x2F;src&#x2F;core.js:665</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request script and inserts it in the DOM</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">id</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>when the button is pressed</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">style</code>
                        <span class="type">Object | String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_createDropArea" class="method item">
    <h3 class="name"><code>createDropArea</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>element</code>
                </li>
                <li class="arg">
                        <code>callback_drop</code>
                </li>
                <li class="arg">
                        <code>callback_enter</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l1179"><code>..&#x2F;src&#x2F;core.js:1179</code></a>
        </p>



    </div>

    <div class="description">
        <p>Helper, makes drag and drop easier by enabling drag and drop in a given element</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">element</code>
                        <span class="type">HTMLElement</span>


                    <div class="param-description">
                        <p>the element where users could drop items</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback_drop</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>function to call when the user drops the item</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback_enter</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>[optional] function to call when the user drags something inside</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_createElement" class="method item">
    <h3 class="name"><code>createElement</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>tag</code>
                </li>
                <li class="arg">
                        <code>id_class</code>
                </li>
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>style</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l619"><code>..&#x2F;src&#x2F;core.js:619</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request script and inserts it in the DOM</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">tag</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">id_class</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>string containing id and classes, example: &quot;myid .someclass .anotherclass&quot;</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">style</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_draggable" class="method item">
    <h3 class="name"><code>draggable</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>container</code>
                </li>
                <li class="arg">
                        <code>dragger</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l1011"><code>..&#x2F;src&#x2F;core.js:1011</code></a>
        </p>



    </div>

    <div class="description">
        <p>Makes one element draggable</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">container</code>
                        <span class="type">HTMLEntity</span>


                    <div class="param-description">
                        <p>the element that will be dragged</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">dragger</code>
                        <span class="type">HTMLEntity</span>


                    <div class="param-description">
                        <p>the area to start the dragging</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_getById" class="method item">
    <h3 class="name"><code>getById</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>id
return</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l215"><code>..&#x2F;src&#x2F;core.js:215</code></a>
        </p>



    </div>

    <div class="description">
        <p>wrapper of document.getElementById</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">id
return</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>{HTMLEntity}</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_getLocalClipboard" class="method item">
    <h3 class="name"><code>getLocalClipboard</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l338"><code>..&#x2F;src&#x2F;core.js:338</code></a>
        </p>



    </div>

    <div class="description">
        <p>Reads from the secondary clipboard (only can read if the data was stored using the toClipboard)</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>clipboard</p>

            </div>
        </div>


</div>
<div id="method_getUrlVars" class="method item">
    <h3 class="name"><code>getUrlVars</code></h3>

        <span class="paren">()</span>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l981"><code>..&#x2F;src&#x2F;core.js:981</code></a>
        </p>



    </div>

    <div class="description">
        <p>Returns the URL vars ( ?foo=faa&amp;foo2=etc )</p>

    </div>




</div>
<div id="method_init" class="method item">
    <h3 class="name"><code>init</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>options</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l26"><code>..&#x2F;src&#x2F;core.js:26</code></a>
        </p>



    </div>

    <div class="description">
        <p>initializes the lib, must be called</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">options</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>some options are container, menubar,</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_popup" class="method item">
    <h3 class="name"><code>popup</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>options</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l757"><code>..&#x2F;src&#x2F;core.js:757</code></a>
        </p>



    </div>

    <div class="description">
        <p>Shows a dialog with a message</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">options</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>( min_height, content, noclose )</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_prompt" class="method item">
    <h3 class="name"><code>prompt</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>content</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
                <li class="arg">
                        <code>options</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l839"><code>..&#x2F;src&#x2F;core.js:839</code></a>
        </p>



    </div>

    <div class="description">
        <p>Shows a prompt dialog with a message</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">content</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">options</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>( title, width, height, content, noclose )</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_remove" class="method item">
    <h3 class="name"><code>remove</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>litegui_element</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l184"><code>..&#x2F;src&#x2F;core.js:184</code></a>
        </p>



    </div>

    <div class="description">
        <p>Remove from the interface, it is is an HTML element it is removed from its parent, if it is a widget the same.</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">litegui_element</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>it also supports HTMLentity, selector string or Array of elements</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_request" class="method item">
    <h3 class="name"><code>request</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>request</code>
                </li>
                <li class="arg">
                        <code>on_complete</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l406"><code>..&#x2F;src&#x2F;core.js:406</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request file from url (it could be a binary, text, etc.). If you want a simplied version use</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">request</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>object with all the parameters like data (for sending forms), dataType, success, error</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_complete</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_requestBinary" class="method item">
    <h3 class="name"><code>requestBinary</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>url</code>
                </li>
                <li class="arg">
                        <code>on_complete</code>
                </li>
                <li class="arg">
                        <code>on_error</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l520"><code>..&#x2F;src&#x2F;core.js:520</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request binary file from url</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">url</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_complete</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_error</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_requestJSON" class="method item">
    <h3 class="name"><code>requestJSON</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>url</code>
                </li>
                <li class="arg">
                        <code>on_complete</code>
                </li>
                <li class="arg">
                        <code>on_error</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l508"><code>..&#x2F;src&#x2F;core.js:508</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request file from url</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">url</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_complete</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_error</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_requestText" class="method item">
    <h3 class="name"><code>requestText</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>url</code>
                </li>
                <li class="arg">
                        <code>on_complete</code>
                </li>
                <li class="arg">
                        <code>on_error</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l496"><code>..&#x2F;src&#x2F;core.js:496</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request file from url</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">url</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_complete</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_error</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_requireCSS" class="method item">
    <h3 class="name"><code>requireCSS</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>url</code>
                </li>
                <li class="arg">
                        <code>on_complete</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l380"><code>..&#x2F;src&#x2F;core.js:380</code></a>
        </p>



    </div>

    <div class="description">
        <p>Requires a new CSS</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">url</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>string with url or an array with several urls</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_complete</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_requireScript" class="method item">
    <h3 class="name"><code>requireScript</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>url</code>
                </li>
                <li class="arg">
                        <code>on_complete</code>
                </li>
                <li class="arg">
                        <code>on_error</code>
                </li>
                <li class="arg">
                        <code>on_progress</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l533"><code>..&#x2F;src&#x2F;core.js:533</code></a>
        </p>



    </div>

    <div class="description">
        <p>Request script and inserts it in the DOM</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">url</code>
                        <span class="type">String | Array</span>


                    <div class="param-description">
                        <p>the url of the script or an array containing several urls</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_complete</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_error</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">on_progress</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>(if several files are required, on_progress is called after every file is added to the DOM)</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_setCursor" class="method item">
    <h3 class="name"><code>setCursor</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>cursor</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l260"><code>..&#x2F;src&#x2F;core.js:260</code></a>
        </p>



    </div>

    <div class="description">
        <p>Change cursor</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">cursor</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_setCursor" class="method item">
    <h3 class="name"><code>setCursor</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>cursor</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l270"><code>..&#x2F;src&#x2F;core.js:270</code></a>
        </p>



    </div>

    <div class="description">
        <p>Test if the cursor is inside an element</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">cursor</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_sizeToCSS" class="method item">
    <h3 class="name"><code>sizeToCSS</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>size</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">String</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l1162"><code>..&#x2F;src&#x2F;core.js:1162</code></a>
        </p>



    </div>

    <div class="description">
        <p>Convert sizes in any format to a valid CSS format (number to string, negative number to calc( 100% - number px )</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">size</code>
                        <span class="type">String |  | Number</span>


                    <div class="param-description">
                         
                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">String</span>:
                    <p>valid css size string</p>

            </div>
        </div>


</div>
<div id="method_toClipboard" class="method item">
    <h3 class="name"><code>toClipboard</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>data</code>
                </li>
                <li class="arg">
                        <code>force_local</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l293"><code>..&#x2F;src&#x2F;core.js:293</code></a>
        </p>



    </div>

    <div class="description">
        <p>Copy a string to the clipboard (it needs to be invoqued from a click event)</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">data</code>
                        <span class="type">String</span>


                    <div class="param-description">
                         
                    </div>

                </li>
                <li class="param">
                        <code class="param-name">force_local</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>force to store the data in the browser clipboard (this one can be read back)</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_trigger" class="method item">
    <h3 class="name"><code>trigger</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>element</code>
                </li>
                <li class="arg">
                        <code>event_name</code>
                </li>
                <li class="arg">
                        <code>params</code>
                </li>
                <li class="arg">
                        <code>origin</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l88"><code>..&#x2F;src&#x2F;core.js:88</code></a>
        </p>



    </div>

    <div class="description">
        <p>Triggers a simple event in an object (similar to jQuery.trigger)</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">element</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>could be an HTMLEntity or a regular object</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">event_name</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>the type of the event</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">params</code>
                        <span class="type"></span>


                    <div class="param-description">
                        <p>it will be stored in e.detail</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">origin</code>
                        <span class="type"></span>


                    <div class="param-description">
                        <p>it will be stored in e.srcElement</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_trigger" class="method item">
    <h3 class="name"><code>trigger</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>element</code>
                </li>
                <li class="arg">
                        <code>event</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l109"><code>..&#x2F;src&#x2F;core.js:109</code></a>
        </p>



    </div>

    <div class="description">
        <p>Binds an event in an object (similar to jQuery.bind)
If the element is not an HTML entity a new one is created, attached to the object (as non-enumerable, called __events) and used</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">element</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>could be an HTMLEntity, a regular object, a query string or a regular Array of entities</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">event</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>the string defining the event</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>where to call</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_unbind" class="method item">
    <h3 class="name"><code>unbind</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>element</code>
                </li>
                <li class="arg">
                        <code>event</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/.._src_core.js.html#l159"><code>..&#x2F;src&#x2F;core.js:159</code></a>
        </p>



    </div>

    <div class="description">
        <p>Unbinds an event in an object (similar to jQuery.unbind)</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">element</code>
                        <span class="type">Object</span>


                    <div class="param-description">
                        <p>could be an HTMLEntity or a regular object</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">event</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>the string defining the event</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>where to call</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
            </div>



    </div>
</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
